package com.cfy.mybatis.spring.service;

import com.cfy.mybatis.spring.mapper.WeatherMapper;
import com.dubbo.service.api.WeatherService;
import com.dubbo.service.api.mainpk.TodayWeather;

import java.util.List;

public class WeatherServiceImpl implements WeatherService{

    private WeatherMapper weatherMapper;

    public void setWeatherMapper(WeatherMapper weatherMapper) {
        this.weatherMapper = weatherMapper;
    }
    @Override
    public List<TodayWeather> getAllWeather() {
        return this.weatherMapper.getAll();
    }
}
